package com.xnyzc.lhy.task.fallback.activity;

import com.xnyzc.lhy.task.fegin.activity.QuartzActivityStatisticsService;
import com.xnyzc.lhy.task.fegin.punishment.QuartzPunishmentStatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 服务的降级， 如出现远程调用失败，则会触发该回调
 */
@Slf4j
@Service
public class QuartzActivityStatisticsFallback implements QuartzActivityStatisticsService {

    @Override
    public void updateActivityStatus() {
        log.error("更新活动状态超时");
    }

    @Override
    public void completeActivityPeriod() {
        log.error("活动周期完成超时");
    }

    @Override
    public void calActivityPeriodReward() {
        log.error("活动结算超时");
    }
}
